package com.junlinpro.entity;


import java.io.Serializable;

public class MessageEntity implements Serializable {

    private byte[] frameHead; // 帧头
    private int allLen;       // 总长度
    private String versionNum;// 版本号
    private int cardId;       // 采集卡编号
    private byte channelId;   // 通道号
    private byte cmd;         // 命令
    private int frameId;      // 帧序号
    private byte cardType;     // 采集卡类型(0:固定 1:手持)
    private long occurTime;    // 事件发生时间
    private byte[] data;      // 数据
    private byte[] crc;       // crc
    private byte[] frameEnd;  // 帧尾
    private int dataLen;      // 数据长度

    public byte getCardType() {
        return cardType;
    }

    public void setCardType(byte cardType) {
        this.cardType = cardType;
    }

    public long getOccurTime() {
        return occurTime;
    }

    public void setOccurTime(long occurTime) {
        this.occurTime = occurTime;
    }

    public String getVersionNum() {
        return versionNum;
    }

    public void setVersionNum(String versionNum) {
        this.versionNum = versionNum;
    }

    public int getAllLen() {
        return allLen;
    }

    public void setAllLen(int allLen) {
        this.allLen = allLen;
    }

    public byte[] getFrameEnd() {
        return frameEnd;
    }

    public void setFrameEnd(byte[] frameEnd) {
        this.frameEnd = frameEnd;
    }

    public byte[] getFrameHead() {
        return frameHead;
    }

    public void setFrameHead(byte[] frameHead) {
        this.frameHead = frameHead;
    }

    public int getCardId() {
        return cardId;
    }

    public void setCardId(int cardId) {
        this.cardId = cardId;
    }

    public byte getChannelId() {
        return channelId;
    }

    public void setChannelId(byte channelId) {
        this.channelId = channelId;
    }

    public byte getCmd() {
        return cmd;
    }

    public void setCmd(byte cmd) {
        this.cmd = cmd;
    }

    public int getFrameId() {
        return frameId;
    }

    public void setFrameId(int frameId) {
        this.frameId = frameId;
    }

    public int getDataLen() {
        return dataLen;
    }

    public void setDataLen(int dataLen) {
        this.dataLen = dataLen;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }

    public byte[] getCrc() {
        return crc;
    }

    public void setCrc(byte[] crc) {
        this.crc = crc;
    }
}
